Skip to main content
Version: 8.4.12.1

TheoSurfacePerf

V8 Message Definiton

TheoSurfacePerf records are published throughout he day for each active client theoretical model in the SpiderRock system. They are suitable for tracking performance of a theoretical model surface whether or not it is being traded. TheoSurfacePerf records are published to the SpiderRock elastic cluster at the end of each day.

METADATA

AttributeValue
Topic1000-analytics
MLink TokenClientTheo
ProductSRTheo
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
ekey_atenum - AssetTypePRI'None'
ekey_tsenum - TickerSrcPRI'None'
ekey_tkVARCHAR(12)PRI''
ekey_yrSMALLINT UNSIGNEDPRI0
ekey_mnTINYINT UNSIGNEDPRI0
ekey_dyTINYINT UNSIGNEDPRI0
theoModelVARCHAR(16)PRI''theo model
clientFirmVARCHAR(16)PRI''client firm this theo model is associated with controls visibility
perfSurfTypeenum - PerfSurfaceTypePRI'None'
dateVARCHAR(10)''
timeVARCHAR(8)''
ticker_atenum - AssetType'None'SpiderRock underlier stock key
ticker_tsenum - TickerSrc'None'SpiderRock underlier stock key
ticker_tkVARCHAR(12)''SpiderRock underlier stock key
strikeFLOAT0atm strike fwd uPrcfrom LiveSurfacePerf record
tEMoveFLOAT0theoretical event move if any
cTVolFLOAT0theo call volatility from theoModel strike strike
pTVolFLOAT0theo put volatility from theoModel strike strike
cTOpxFLOAT0theo call price cTVol uMark years sdiv rate ddiv
pTOpxFLOAT0theo put price pTVol uMark years sdiv rate ddiv
fixCTVolFLOAT0fixed strike theo call volatility from theoModel strike prvStrike
fixPTVolFLOAT0fixed strike theo put volatility from theoModel strike prvStrike
fixCTOpxFLOAT0fixed strike theo call price fixTVol uMark years sdiv rate ddivstrike prvStrike
fixPTOpxFLOAT0fixed strike theo put price fixTVol uMark years sdiv rate ddivstrike prvStrike
prvStrikeFLOAT0prior period atm strike
prvTEMoveFLOAT0prior period theoretical event move if any
prvCTVolFLOAT0prior period theo call volatility strike prvStrike
prvPTVolFLOAT0prior period theo put volatility strike prvStrike
prvCTOpxFLOAT0prior period theo call price strike prvStrike
prvPTOpxFLOAT0prior period theo call price strike prvStrike
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ekey_tk1
ekey_yr2
ekey_mn3
ekey_dy4
ekey_at5
ekey_ts6
theoModel7
clientFirm8
perfSurfType9

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRTheo`.`MsgTheoSurfacePerf` (
`ekey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ekey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ekey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`ekey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`ekey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`ekey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`theoModel` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'theo model',
`clientFirm` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'client firm this theo model is associated with (controls visibility)',
`perfSurfType` ENUM('None','Live','PriorDay') NOT NULL DEFAULT 'None',
`date` VARCHAR(10) NOT NULL DEFAULT '',
`time` VARCHAR(8) NOT NULL DEFAULT '',
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'SpiderRock underlier stock key',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'SpiderRock underlier stock key',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'SpiderRock underlier stock key',
`strike` FLOAT NOT NULL DEFAULT 0 COMMENT 'atm strike (fwd uPrc);from LiveSurfacePerf record',
`tEMove` FLOAT NOT NULL DEFAULT 0 COMMENT 'theoretical event move (if any)',
`cTVol` FLOAT NOT NULL DEFAULT 0 COMMENT 'theo call volatility (from theoModel @ strike = strike)',
`pTVol` FLOAT NOT NULL DEFAULT 0 COMMENT 'theo put volatility (from theoModel @ strike = strike)',
`cTOpx` FLOAT NOT NULL DEFAULT 0 COMMENT 'theo call price @ (cTVol, uMark, years, sdiv, rate, ddiv)',
`pTOpx` FLOAT NOT NULL DEFAULT 0 COMMENT 'theo put price @ (pTVol, uMark, years, sdiv, rate, ddiv)',
`fixCTVol` FLOAT NOT NULL DEFAULT 0 COMMENT 'fixed strike theo call volatility (from theoModel @ strike = prvStrike)',
`fixPTVol` FLOAT NOT NULL DEFAULT 0 COMMENT 'fixed strike theo put volatility (from theoModel @ strike = prvStrike)',
`fixCTOpx` FLOAT NOT NULL DEFAULT 0 COMMENT 'fixed strike theo call price @ (fixTVol, uMark, years, sdiv, rate, ddiv);strike = prvStrike',
`fixPTOpx` FLOAT NOT NULL DEFAULT 0 COMMENT 'fixed strike theo put price @ (fixTVol, uMark, years, sdiv, rate, ddiv);strike = prvStrike',
`prvStrike` FLOAT NOT NULL DEFAULT 0 COMMENT 'prior period atm strike',
`prvTEMove` FLOAT NOT NULL DEFAULT 0 COMMENT 'prior period theoretical event move (if any)',
`prvCTVol` FLOAT NOT NULL DEFAULT 0 COMMENT 'prior period theo call volatility @ strike = prvStrike',
`prvPTVol` FLOAT NOT NULL DEFAULT 0 COMMENT 'prior period theo put volatility @ strike = prvStrike',
`prvCTOpx` FLOAT NOT NULL DEFAULT 0 COMMENT 'prior period theo call price @ strike = prvStrike',
`prvPTOpx` FLOAT NOT NULL DEFAULT 0 COMMENT 'prior period theo call price @ strike = prvStrike',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`ekey_tk`,`ekey_yr`,`ekey_mn`,`ekey_dy`,`ekey_at`,`ekey_ts`,`theoModel`,`clientFirm`,`perfSurfType`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='TheoSurfacePerf records are published throughout he day for each active client theoretical model in the SpiderRock system. They are suitable for tracking performance of a theoretical model surface whether or not it is being traded.\nTheoSurfacePerf records are published to the SpiderRock elastic cluster at the end of each day.';

SELECT TABLE EXAMPLE QUERY

SELECT
`ekey_at`,
`ekey_ts`,
`ekey_tk`,
`ekey_yr`,
`ekey_mn`,
`ekey_dy`,
`theoModel`,
`clientFirm`,
`perfSurfType`,
`date`,
`time`,
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`strike`,
`tEMove`,
`cTVol`,
`pTVol`,
`cTOpx`,
`pTOpx`,
`fixCTVol`,
`fixPTVol`,
`fixCTOpx`,
`fixPTOpx`,
`prvStrike`,
`prvTEMove`,
`prvCTVol`,
`prvPTVol`,
`prvCTOpx`,
`prvPTOpx`,
`timestamp`
FROM `SRTheo`.`MsgTheoSurfacePerf`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ekey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ekey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ekey_tk` = 'Example_ekey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`ekey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`ekey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`ekey_dy` = 1
AND
/* Replace with a VARCHAR(16) */
`theoModel` = 'Example_theoModel'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm'
AND
/* Replace with a ENUM('None','Live','PriorDay') */
`perfSurfType` = 'None';

Doc Columns Query

SELECT * FROM SRTheo.doccolumns WHERE TABLE_NAME='TheoSurfacePerf' ORDER BY ordinal_position ASC;